package com.heima.oopAdvanced.n07innerclass.demo01;

public class Car {
    private String carName;
    private int carAge;
    private String carColor;

    public void show()
    {
        System.out.println(carName);
        Engine e = new Engine();
        System.out.println(e.engineName);
    }

    class Engine{
        private String engineName;
        private int engineAge;

        public void show()
        {
            System.out.println(engineName);
            System.out.println(carName);
        }
    }
}
